﻿@using KMF.WebUI.CustomHelpers
@model IEnumerable<KMF.Common.ViewBannerClientDto>
@{
    var bannerFilter = Model.Where(m => m.PageKey == "TAT-CA-CAC-TRANG" & m.PositionKey == "SLIDE-ON-HOME").OrderBy(m => m.BannerImageOrder);
}
@if (bannerFilter.Any())
{
    <ul class="bxslider">
        @foreach (var item in bannerFilter)
        {
            <li>
                <a href="@string.Format("{0}", string.IsNullOrEmpty(item.Url) ? "javascript:void(0);" : item.Url)">
                    <img src="@item.ImagePath.ImagePathThumbDefault()" alt="@item.Description" />
                </a>
            </li>
        }
    </ul>
}
